VER=""
APP="ftp"
EXE="${APP}"

CC = arm-arago-linux-gnueabi-gcc
##CC = gcc
CFLAGS = -Wall -g -Wunused -Wsign-compare -Wunreachable-code -std=gnu99 -D_GNU_SOURCE -DAPPNAME=\"${APP}\" -DVERSION=\"${VER}\" -DDEBUG_SYS_INFO


LIBS  = -lpthread -lm -lssl -lcrypto -lz



DIR =  ./

SRC = $(shell find $(DIR) -name "*.c")
OBJ = $(SRC:%.c=%.o)

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $(@D)/$(<F) -o $(@D)/$(@F)

$(EXE):$(OBJ)
	$(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LIBS)
	chmod a+x $(EXE)
clean:
	$(RM) $(EXE) $(OBJ)
